namespace Arcane.Source.Combat.StatusEffects
{
    public abstract class TimerEffect(int duration) : BaseStatusEffect
    {
        protected float _timer = duration;
        public override float Life => _timer;

        public override void OnTick(Entity host)
        {
            _timer -= host.TimeScale;
            NotifyLifeChange();
        }
    }
}